<?php
/**
 * 2021/8/16 16:15
 */
$router->get("/index",function (Req $req){
    try{
        $res = AppIndexS::getInstance()->index($req);
        return $req->success($res);
    } catch (ApiError $exception) {
        return $req->no($exception->getError());
    } catch (Throwable $exception) {
        return $req->no($exception->getMessage());
    }
});